Technical Q&A QA1342
Mixing AWT/Swing and Cocoa Java


Q: Can I mix Cocoa Java and AWT/Swing?

A: The mixing of Cocoa Java and AWT/Swing is not recommended.

Calling Cocoa Java classes from an AWT/Swing java process may seem to work, but it is not recommended. The recommended way of calling platform specific code from AWT/Swing processes on Mac OS X is via JNI, as it is when using the JDK on any other platform.


[Feb 26, 2004]


Developer Documentation | Technical Notes | Development Kits | Sample Code